package org.liuyunfeng.service;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.liuyunfeng.domain.ExcellentEnterpriseSelectionApplication;
import org.liuyunfeng.domain.ExcellentEnterpriseSelectionMapper;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2022-01-05 16:43
 **/
@Service
@RequiredArgsConstructor
@Slf4j
public class ExcellentEnterpriseSelectionService {
    private final ExcellentEnterpriseSelectionMapper mapper;

    public ExcellentEnterpriseSelectionApplication save(ExcellentEnterpriseSelectionApplication application) {
        application.setCreateTime(new Date());
        application.perfect();
        mapper.insert(application);
        return application;
    }

}

    